package acationtiktokcasemymongo

const (
	ActionHouseMatchCpLogTypeCp       = 0 //cp
	ActionHouseMatchCpLogTypeCancelCp = 1 //解散cp

	ActionHouseMatchCpLogDoTypeAuto  = 0 //0:系统自动;1:管理后台;
	ActionHouseMatchCpLogDoTypeAdmin = 1 //0:系统自动;1:管理后台;
)

type ActionHouseMatchMarryLogCases struct {
}

var ActionHouseMatchMarryLogCasesObject ActionHouseMatchMarryLogCases

func (e ActionHouseMatchMarryLogCases) LogType() []int {
	return []int{
		ActionHouseMatchCpLogTypeCp,
		ActionHouseMatchCpLogTypeCancelCp,
	}
}

func (e ActionHouseMatchMarryLogCases) LogTypeMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.LogType() {
		m[s] = s
	}
	return m
}

func (e ActionHouseMatchMarryLogCases) LogTypeString(tag int) string {
	switch tag {
	case ActionHouseMatchCpLogTypeCp:
		return "组成CP"
	case ActionHouseMatchCpLogTypeCancelCp:
		return "解散CP"
	default:
		return "未知"
	}
}

func (e ActionHouseMatchMarryLogCases) DoType() []int {
	return []int{
		ActionHouseMatchCpLogDoTypeAuto,
		ActionHouseMatchCpLogDoTypeAdmin,
	}
}

func (e ActionHouseMatchMarryLogCases) MarryDoTypeMap() map[int]int {
	m := make(map[int]int)
	for _, s := range e.DoType() {
		m[s] = s
	}
	return m
}

func (e ActionHouseMatchMarryLogCases) MarryDoTypeString(tag int) string {
	switch tag {
	case ActionHouseMatchCpLogDoTypeAuto:
		return "自动"
	case ActionHouseMatchCpLogDoTypeAdmin:
		return "后台操作"
	default:
		return "未知"
	}
}
